<?php

class StatisticsController extends Controller
{

	public $layout='//layouts/column2';


	public function filters()
	{
		return array(
				'accessControl', // perform access control for CRUD operations
				'postOnly + delete', // we only allow deletion via POST request
		);
	}


	public function accessRules()
	{
		return array(
				array('allow',
						'actions'=>array('index','totalwin','totalvotes'),
						'users'=>array('*'),
				),
					
		);
	}


	public function actionIndex()
	{

	}

	public function actionTotalwin()
	{
		$model = new Match();
		$this->render('totalwin',array(
				'model'=>$model,
		));
	}

	public function actionTotalvotes()
	{
		$model = new Match();
		$this->render('totalvotes',array(
				'model'=>$model,
		));
	}




}
